export function getCurrentTime() {
  const date = new Date()
  return date.getTime()
}

export function deleteParam(index, rows) {
  console.log('删除参数')
  rows.splice(index, 1)
}

export function addElement(array, element) {
  array.push(element)
}

export function validJsonParams(attr) {
  if (attr) {
    return JSON.parse(attr)
  } else {
    return []
  }
}
